setTextLineHeight

abstract fun setTextLineHeight(block: DesignBlock, lineHeight: Float?, paragraphIndex: Int = -1)

Sets the line height multiplier for a specific paragraph or all paragraphs of a text block. Required scope: "text/character"

Parameters

block

the text block to modify.

lineHeight

the line height multiplier, or null to reset to the block-level default.

paragraphIndex

the 0-based index of the paragraph to modify. Negative values apply to all paragraphs.